package com.logistica.metropolitana.db.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Table;


/**
 * The persistent class for the ae_pai_interno database table.
 * 
 */
@Entity
@Table(name="ae_pai_interno")
@NamedQuery(name="AePaiInterno.findAll", query="SELECT a FROM AePaiInterno a")
public class AePaiInterno implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id_paii")
	private Long idPaii;

	@Column(name="paii_cat_cont")
	private String paiiCatCont;

	@Column(name="paii_conectividad")
	private Boolean paiiConectividad;

	@Column(name="paii_filtro")
	private Boolean paiiFiltro;

	@Column(name="paii_pa_password")
	private Boolean paiiPaPassword;

	@Column(name="paii_password")
	private String paiiPassword;

	@Column(name="paii_portal_acceso")
	private Boolean paiiPortalAcceso;

	@Column(name="paii_url")
	private String paiiUrl;

	@Column(name="ssid_60m_visible")
	private Boolean ssid60mVisible;

	//bi-directional many-to-one association to AeSitio
	@OneToOne(mappedBy="aePaiInterno")
	private AeSitio aeSitio;

	public AePaiInterno() {
	}

	public Long getIdPaii() {
		return this.idPaii;
	}

	public void setIdPaii(Long idPaii) {
		this.idPaii = idPaii;
	}

	public String getPaiiCatCont() {
		return this.paiiCatCont;
	}

	public void setPaiiCatCont(String paiiCatCont) {
		this.paiiCatCont = paiiCatCont;
	}

	public Boolean getPaiiConectividad() {
		return this.paiiConectividad;
	}

	public void setPaiiConectividad(Boolean paiiConectividad) {
		this.paiiConectividad = paiiConectividad;
	}

	public Boolean getPaiiFiltro() {
		return this.paiiFiltro;
	}

	public void setPaiiFiltro(Boolean paiiFiltro) {
		this.paiiFiltro = paiiFiltro;
	}

	public Boolean getPaiiPaPassword() {
		return this.paiiPaPassword;
	}

	public void setPaiiPaPassword(Boolean paiiPaPassword) {
		this.paiiPaPassword = paiiPaPassword;
	}

	public String getPaiiPassword() {
		return this.paiiPassword;
	}

	public void setPaiiPassword(String paiiPassword) {
		this.paiiPassword = paiiPassword;
	}

	public Boolean getPaiiPortalAcceso() {
		return this.paiiPortalAcceso;
	}

	public void setPaiiPortalAcceso(Boolean paiiPortalAcceso) {
		this.paiiPortalAcceso = paiiPortalAcceso;
	}

	public String getPaiiUrl() {
		return this.paiiUrl;
	}

	public void setPaiiUrl(String paiiUrl) {
		this.paiiUrl = paiiUrl;
	}

	public Boolean getSsid60mVisible() {
		return this.ssid60mVisible;
	}

	public void setSsid60mVisible(Boolean ssid60mVisible) {
		this.ssid60mVisible = ssid60mVisible;
	}

	

	public AeSitio getAeSitio() {
		return aeSitio;
	}

	public void setAeSitio(AeSitio aeSitio) {
		this.aeSitio = aeSitio;
	}

	public AeSitio addAeSitio(AeSitio aeSitio) {
		aeSitio.setAePaiInterno(this);

		return aeSitio;
	}

	public AeSitio removeAeSitio(AeSitio aeSitio) {
		aeSitio.setAePaiInterno(null);

		return aeSitio;
	}

}